cmake_minimum_required (VERSION 2.6)
project(pltdemo)

# 编译32位产物
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -fPIC -g")

add_library(dynamic SHARED dynamic.c elf_hook.c)
add_executable(main main.c)
target_link_libraries (main dynamic)
